/*
 * Copyright 2021 ThoughtWorks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * Tooltips.css
 *
 * overrides to plugin tiptip CSS - Version 1.2
 */


/**
 * TABLE OF CONTENTS
 *
 * =CONTEXTUAL_HELP
 * =TIPTIP
 * ==WEBKIT HACKS
 * ==FORM_WIRING
 * TODO: FROM MODULE.CSS
 * =TRUNCATED_TOOLTIP
 */


/**
 * =CONTEXTUAL_HELP
 * NOTE: this is a helper class that should be put on the div calling the tooltip
**/
div.contextual_help {
  background: image_url('g9/icons/icon_help_16_inactive.png') no-repeat center center;
  display: block;
  float: left;
  height: 22px;
  margin: 3px;
  width: 22px;
}
.contextual_help:hover {
  background: image_url('g9/icons/icon_help_16.png') no-repeat center center;
}
span.contextual_help {
  background: image_url('g9/icons/icon_help_16_inactive.png') no-repeat center center;
  line-height: 22px;
  padding-bottom: 5px;
  padding-right: 22px;
  padding-top: 12px;
}
.checkbox_row div.contextual_help {
  display: inline-block;
  float: none;
  margin-top: 0px;
  margin-left: -7px;
}


/**
 * =TIPTIP
 */
#tiptip_holder {
  display: none;
  left: 0;
  position: absolute;
  top: 0;
  z-index: 99999;
}
#tiptip_holder.tip_top {
  padding-bottom: 5px;
}
#tiptip_holder.tip_bottom {
  padding-top: 5px;
}
#tiptip_holder.tip_right {
  padding-left: 5px;
}
#tiptip_holder.tip_left {
  padding-right: 5px;
}
#tiptip_content {
  background-color: rgb(25,25,25);
  background-color: rgba(25,25,25,0.92);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000));
  border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 3px #555;
    -webkit-box-shadow: 0 0 3px #555;
    -moz-box-shadow: 0 0 3px #555;
  color: #fff;
  font-size: 11px;
  padding: 8px 12px;
  text-shadow: 0 0 2px #000;
}
#tiptip_arrow, #tiptip_arrow_inner {
  position: absolute;
  border-color: transparent;
  border-style: solid;
  border-width: 6px;
  height: 0;
  width: 0;
}
#tiptip_holder.tip_top #tiptip_arrow {
  border-top-color: #FFF;
  border-top-color: rgba(255,255,255,0.35);
}
#tiptip_holder.tip_bottom #tiptip_arrow {
  border-bottom-color: #FFF;
  border-bottom-color: rgba(255,255,255,0.35);
}
#tiptip_holder.tip_right #tiptip_arrow {
  border-right-color: #FFF;
  border-right-color: rgba(255,255,255,0.35);
}
#tiptip_holder.tip_left #tiptip_arrow {
  border-left-color: #FFF;
  border-left-color: rgba(255,255,255,0.35);
}
#tiptip_holder.tip_top #tiptip_arrow_inner {
  border-top-color: rgb(25,25,25);
  border-top-color: rgba(25,25,25,0.92);
  margin-left: -6px;
  margin-top: -7px;
}
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
  border-bottom-color: rgb(25,25,25);
  border-bottom-color: rgba(25,25,25,0.92);
  margin-left: -6px;
  margin-top: -5px;
}
#tiptip_holder.tip_right #tiptip_arrow_inner {
  border-right-color: rgb(25,25,25);
  border-right-color: rgba(25,25,25,0.92);
  margin-left: -5px;
  margin-top: -6px;
}
#tiptip_holder.tip_left #tiptip_arrow_inner {
  border-left-color: rgb(25,25,25);
  border-left-color: rgba(25,25,25,0.92);
  margin-left: -7px;
  margin-top: -6px;
}


/**
 * ==FORM_WIRING
 */
.before_tip {
  float: left;
}

/**
 * ==WEBKIT HACKS
 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  #tiptip_content {
    background-color: rgba(45,45,45,0.88);
    padding: 4px 8px 5px 8px;
  }
  #tiptip_holder.tip_bottom #tiptip_arrow_inner {
    border-bottom-color: rgba(45,45,45,0.88);
  }
  #tiptip_holder.tip_top #tiptip_arrow_inner {
    border-top-color: rgba(20,20,20,0.92);
  }
}


/**
 * TODO: FROM MODULE.CSS
 */
div.has_go_tip {
  /*background: transparent image_url('g9/icons/icon_help_16.png') repeat scroll 0 0;*/
  /*height: 16px;*/
  /*position: absolute;*/
  /*right: 0;*/
  /*top: -25px;*/
  /*width: 16px;*/
}

div.has_go_tip:hover {
}

.has_go_tip,
.has_go_tip_right,
.has_go_tip_left {
  cursor: help;
}

#tiptip_holder {
  display: none;
  left: 0;
  position: absolute;
  top: 0;
  z-index: 99999;
}

#tiptip_holder.tip_top {
  padding-bottom: 5px;
}

#tiptip_holder.tip_bottom {
  padding-top: 5px;
}

#tiptip_holder.tip_right {
  padding-left: 5px;
}

#tiptip_holder.tip_left {
  padding-right: 5px;
}

#tiptip_content {
  background-color:#333;
  max-width: 300px;
  color:#FFF;
  font-size: 11px;
  padding: 7px 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 0 8px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

#tiptip_arrow, #tiptip_arrow_inner {
  border: 6px solid transparent;
  height: 0;
  position: absolute;
  width: 0;
}

#tiptip_holder.tip_top #tiptip_arrow {
  border-top-color: #333333;
}

#tiptip_holder.tip_bottom #tiptip_arrow {
  border-bottom-color: #333333;
}

#tiptip_holder.tip_right #tiptip_arrow {
  border-right-color: #333333;
}

#tiptip_holder.tip_left #tiptip_arrow {
  border-left-color: #333333;
}

#tiptip_holder.tip_top #tiptip_arrow_inner {
  border-top-color: #333333;
  margin-left: -6px;
  margin-top: -7px;
}

#tiptip_holder.tip_bottom #tiptip_arrow_inner {
  border-bottom-color: #333333;
  margin-left: -6px;
  margin-top: -5px;
}

#tiptip_holder.tip_right #tiptip_arrow_inner {
  border-right-color: #333333;
  margin-left: -5px;
  margin-top: -6px;
}

#tiptip_holder.tip_left #tiptip_arrow_inner {
  border-left-color: #333333;
  margin-left: -7px;
  margin-top: -6px;
}

#tiptip_content {
  padding: 10px 15px;
}

#tiptip_holder.tip_bottom #tiptip_arrow_inner {
}

#tiptip_holder.tip_top #tiptip_arrow_inner {
}


/**
 * =TRUNCATED_TOOLTIP
**/
.pattern_truncated_tooltip {
  padding: 5px;
}
.pattern_truncated_tooltip #tiptip_arrow {
  display: none;
}
.pattern_truncated_tooltip #tiptip_content {
  padding: 5px;
  background: #FFF;
  color: #333;
  border: 1px solid #AAA;
  text-shadow: none;
  box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}
